package in.muton.edushare.pages.coursepages;

import in.muton.edushare.pages.common.CourseProfile;

import java.util.Arrays;

import org.apache.wicket.PageParameters;

import com.edushare.common.constants.ApplicationConstants;
import com.edushare.common.vo.Enrolments;

public class CourseEdit extends CourseBase {

	public CourseEdit(PageParameters params) {
		super(params);
		prc.check(Arrays.asList(Enrolments.TEACHER));
		add(new CourseProfile("panel", getCourse(), this));
	}

	@Override
	protected String getActivePage(PageParameters params) {
		return "editProfile";
	}

	@Override
	public String getPageTitle() {
		return getLoggedInUser().getCompleteUserName() + " | "
				+ getCourse().getObject().getCourseName() + " | Edit Course | "
				+ ApplicationConstants.APPLICATION_NAME;
	}
}
